package com.niuwa.p2p.dao.customer;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.customer.BaseCustomer;

/**
 * @author zhangbo
 *
 */
@MyBatisDao
public interface BaseCustomerDao {

	/**
	 * 根据客户ID获取客户基本信息
	 * 
	 * @param custId
	 *            客户ID
	 * @return BaseCustomerInfoVo
	 */
	BaseCustomer getBaseCustInfoById(Long custId);
	
	/**
	 * 新增
	 * 
	 * @param baseCustomer
	 * @return
	 */
	int saveBaseCustomer(BaseCustomer baseCustomer);
	
	/**
	 * 修改
	 * 
	 * @param baseCustomer
	 * @return
	 */
	int updateBaseCustomer(BaseCustomer baseCustomer) throws Exception;

	/**
	 * 根据ID查询用户信息【web】
	 * @param id
	 * @return
	 */
	public BaseCustomer getPersonalInformation(Long id) throws Exception;
}
